﻿using InterfaceService;
using Microsoft.AspNetCore.Http;
using Service.FileStrategy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class FileOperateService : IFileOperateService
    {
        public async Task<string> Upload(List<IFormFile> formFiles, string mode)
        {
            FileOperateContext fileOperateContext = new FileOperateContext(FileOperateFactory.CreateFileOperateStrategy(mode), formFiles);
            return await fileOperateContext.ContextInterface();
        }
    }
}
